Skip to content

modified jquery.formvalidation.js to refresh language var after jQueryFormUtils.LANG extended with customized localization strings #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 9, 2012

Conversation

stevewasiura
Copy link
Contributor

minimized version needs updating after you approve this pull

I discovered an issue when trying to use localization (changing the error dialogs to show customized strings).

when creating an var object to hold customized strings for the error dialogs, and only setting values for a 1 or 2 of those strings, i.e. errorTitle, requiredFields, etc., the other default values were showing as "undefined".

tracing through the code, it appeared the object being passed to the validate and doValidate functions was not the updated jQueryFormUtils.LANG object, but the var object that contained the customized strings.

so I modified the code that extended the jQueryFormUtils.LANG object, to refresh the language var with the updated jQueryFormUtils.LANG object.

I did that in two places, in the validate and doValidation functions, as you'll see if my branch.

victorjonsson added a commit that referenced this pull request May 9, 2012
modified jquery.formvalidation.js to refresh language var after jQueryFormUtils.LANG extended with customized localization strings
@victorjonsson victorjonsson merged commit adfab93 into victorjonsson:master May 9, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants